<?php

/**
 * Class Problem
 * Formerly named "Error", but as PHP 7 does not allow Error as class name anymore (as there's a Error class in the
 * PHP core itself) it's now called "Problem"
 *
 * Please note:
 * Don't use the same name for class and method, as this might trigger an (unintended) __construct of the class.
 * This is really weird behaviour, but documented here: http://php.net/manual/en/language.oop5.decon.php
 *
 */
class Verify_code extends Controller
{

    public function __construct($params) {
		parent::__construct($params);
    }
	public function index(){		
		$base64Image = VerifyCode::entry();
		printAjaxRaw(array('code'=>200,'img'=>$base64Image));	
	}	
}
